# -*- coding: utf-8 -*-
from math import *
import ModuleDemo

r = [0, 1, 2, 3, 4, 5, 6]
mmap = map(cos, r) #对list的每个元素执行第一个参数的操作
print mmap
print type(map)


def sum(x, y):
    return x+y


print reduce(sum, r)


def judge(i):
    return i > 3


print filter(judge, r)

seq = 'aaaccc'
print seq
print ModuleDemo.reverse_complement(seq)


